import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter)
import SalesPage from '@/views/SalesPage.vue'
import GlobalPage from '@/views/GlobalPage.vue'
// 创建路由规则
const routes = [{
    path: '/',
    redirect: '/salespage'
}, {
    path: '/salespage',
    component: SalesPage
}, {
    path: '/globalpage',
    component: GlobalPage
}];

const router = new VueRouter({
    routes
});
export default router;